<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP '403.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style>
	body{
	 background:${param.color};
	 font-size:${param.size};
	}
	.tablex{
	 width:${param.kuang};
	 border:${param.bordersize}px solid black;
	 height:100px;
	 margin:30px;
	}
</style>
  </head>
  
  <body>
    <%
    try{
      String color= (String)request.getParameter("color");
      String size=(String)request.getParameter("size");
      String kuang=(String)request.getParameter("kuang");
      String bordersize=(String)request.getParameter("bordersize");
      }catch(Exception e){
          e.printStackTrace();
      }
     %>
    <form>
     颜色:<input type="text" name="color"><br>
    字体大小:<input type="text" name="size"><br>
   表格宽度:<input type="text" name="kuang"><br>
  表格边框:<input type="text" name="bordersize"><br>
    <input type="submit" value="修改">
    <input type="reset" value="重置">
    </form>
    颜色：${param.color} 字体大小：${param.size} 表格宽度：${param.kuang} 表格边框：${param.bordersize}<br>
    <table class="tablex">
      <tr>
        <td>qqqq</td>
        <td>qqqq</td>
      </tr>
      <tr>
        <td>qqqq</td>
        <td>qqqq</td>
      </tr>
      <tr>
        <td>qqqq</td>
        <td>qqqq</td>
      </tr>
    </table>
  </body>
</html>
